package com.js.mail.member.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.js.common.exception.PhoneExistException;
import com.js.common.exception.UsernameExistException;
import com.js.common.utils.PageUtils;
import com.js.mail.member.entity.MemberEntity;
import com.js.mail.member.vo.UserLoginVo;
import com.js.mail.member.vo.UserRegistVo;

import java.util.Map;

/**
 * 会员
 *
 * @author js
 * @email 1981725869@qq.com
 * @date 2021-06-14 21:17:00
 */
public interface MemberService extends IService<MemberEntity> {

    PageUtils queryPage(Map<String, Object> params);

    void regist(UserRegistVo userRegistVo);

    void checkPhoneUnique(String phone) throws PhoneExistException;

    void checkUsernameUnique(String username) throws UsernameExistException;

    MemberEntity login(UserLoginVo userLoginVo);
}

